import { View } from "../../../mvc/core/View";
import { ObjCreate } from "../common/ObjCreate";
import { ResFileConst } from "../../resource/ResFileConst";
import { FavoriteWindow } from "./FavoriteWindow";
import { GLoadedButton } from "../../../../com/mui/controls/GLoadedButton";
//class FavoriteView
    
    export  class FavoriteView extends View
    {
        constructor()
        {
            super();
            this.init();
            this.buttonMode = true;
            this.addEventListener(flash.events.MouseEvent.CLICK, this.onFavoriteBtnClickHandler);
            return;
        }

        /* internal  */init(): void
        {
            this._favoriteBtn = ObjCreate.createGLoadedButton(ResFileConst.Favorite, 0, 0, 60, 60, this);
            return;
        }

        /* internal  */onFavoriteBtnClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            FavoriteWindow.instance.show();
            return;
        }

        /* internal */ /* var */_favoriteBtn: GLoadedButton;

        /* internal */ /* var */_tipTxt: Object /* flash.text.TextField */;

        /* internal */ /* var */_lightMask: LightMask;
    }
